﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/DefaultTemplate.master"
    AutoEventWireup="true" CodeBehind="Reg.aspx.cs" Inherits="TeamBuy.AccessWebUI.Reg" %>

<%@ Register src="Components/Main_ComeSoonCities.ascx" tagname="Main_ComeSoonCities" tagprefix="uc1" %>

<%@ Register src="Components/Main_PublicSystemMessage.ascx" tagname="Main_PublicSystemMessage" tagprefix="uc2" %>

<%@ Register src="Components/Head_LoginLink.ascx" tagname="Head_LoginLink" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphDefaultHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphDefault" runat="server">
    <uc2:Main_PublicSystemMessage ID="Main_PublicSystemMessage1" runat="server" />
    <div id="bdw" class="bdw">
        <div id="bd" class="cf">
            <div id="signup">
                <div id="content" class="signup-box">
                    <div class="box">
                        <div class="box-top">
                            
                        </div>
                        <div class="box-content">
                            <div class="head">
                                <h2>
                                    注册</h2>
                                <span>&nbsp;或者 <uc3:Head_LoginLink 
                                    ID="Head_LoginLink1" runat="server" /></span>
                            </div>
                            <div class="sect">
                                <div class="field email">
                                    <label for="signup-email-address">
                                        Email</label>
                                    <asp:TextBox ID="txtEmail" class="f-input" runat="server"></asp:TextBox>
                                    <span class="f-input-tip">
                                    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" Display="Dynamic" ControlToValidate="txtEmail" 
                                        ErrorMessage="请输入 Email 地址" ValidationGroup="RegValidation"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="revEmail" 
                                        runat="server" ErrorMessage="您输入了错误的 Email 地址" Display="Dynamic"
                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                        ValidationGroup="RegValidation" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                                    </span>
                                    <span class="hint">登录及找回密码用，不会公开</span>
                                </div>
                                <div class="field username">
                                    <label for="signup-username">
                                        用户名</label>
                                    <asp:TextBox ID="txtUserName" class="f-input" runat="server"></asp:TextBox>
                                    <span class="f-input-tip">
                                    <asp:RequiredFieldValidator ID="rfvUserName" runat="server" Display="Dynamic" ControlToValidate="txtUserName" 
                                        ErrorMessage="用户名不能为空" ValidationGroup="RegValidation"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="revUserName" runat="server" Display="Dynamic"
                                        ErrorMessage="用户名至少 2 个字符不能超过 8 个字符" 
                                        ControlToValidate="txtUserName" ValidationGroup="RegValidation" ValidationExpression="^\w{2,8}$"></asp:RegularExpressionValidator>
                                    </span>
                                    <span class="hint">2-8 个英文或汉字</span>
                                </div>
                                <div class="field password">
                                    <label for="signup-password">
                                        密码</label>
                                    <asp:TextBox ID="txtPassword" class="f-input" runat="server" TextMode="Password"></asp:TextBox>
                                    <span class="f-input-tip">
                                    <asp:RequiredFieldValidator ID="rfvPassword" runat="server" Display="Dynamic" ControlToValidate="txtPassword" 
                                        ErrorMessage="密码不能为空" ValidationGroup="RegValidation"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="revPassword" runat="server" Display="Dynamic"
                                        ErrorMessage="密码太短，为保证您的账号安全，请至少设置 4 个字符" 
                                        ControlToValidate="txtPassword" ValidationGroup="RegValidation" ValidationExpression="^.{4,}"></asp:RegularExpressionValidator>
                                    </span>
                                    <span class="hint">最少 4 个字符</span>
                                </div>
                                <div class="field password">
                                    <label for="signup-password-confirm">
                                        确认密码</label>
                                    <asp:TextBox ID="txtRePassword" class="f-input" runat="server" TextMode="Password"></asp:TextBox>
                                    <span class="f-input-tip">
                                    <asp:RequiredFieldValidator ID="rfvRePassword" runat="server" Display="Dynamic" ControlToValidate="txtRePassword" 
                                        ErrorMessage="确认密码不能为空" ValidationGroup="RegValidation"></asp:RequiredFieldValidator>
                                        <asp:CompareValidator ID="cvRePassword" Display="Dynamic" runat="server" 
                                        ErrorMessage="两次输入的密码不一致" ControlToCompare="txtPassword" 
                                        ControlToValidate="txtRePassword" ValidationGroup="RegValidation"></asp:CompareValidator>
                                    </span>
                                </div>
                                <div class="field city">
                                    <label id="enter-address-city-label" for="signup-city">
                                        所在城市</label>
                                        <uc1:Main_ComeSoonCities ID="Main_ComeSoonCities1" runat="server" />
                                    <p class="enter-city">
                                        <asp:TextBox ID="txtCityName" runat="server" Visible="false" class="f-input f-cityname"></asp:TextBox>
                                    </p>
<%--                                    <span class="hint"><asp:LinkButton ID="lbtnSubscribeOther" runat="server" 
                                        onclick="lbtnSubscribeOther_Click" Visible="false">没有您所在的城市？</asp:LinkButton></span>
--%>                                </div>
                                <div class="field subscribe">
                                    <asp:CheckBox ID="ckbSubscribe" Checked="true" class="f-check" runat="server" Text="" />
                                    <label for="subscribe">
                                        订阅每日最新团购信息</label>
                                </div>
                                <div class="clear">
                                </div>
                                <div class="act">
                                    <asp:Button ID="btnSubmit" runat="server" Text="注册" class="formbutton" 
                                        onclick="btnSubmit_Click" ValidationGroup="RegValidation" />
                                </div>
                            </div>
                        </div>
                        <div class="box-bottom">
                        </div>
                    </div>
                </div>
                <div id="sidebar">
                    <div class="sbox side-box">
                        <div class="sbox-top">
                        </div>
                        <div class="sbox-content">
                            <div class="side-tip">
                                <h2>
                                    已有美团账户？</h2>
                                <p>
                                    请直接<uc3:Head_LoginLink ID="Head_LoginLink2" 
                                        runat="server"></uc3:Head_LoginLink>。</p>
                            </div>
                        </div>
                        <div class="sbox-bottom">
                        </div>
                    </div>
                    <%--<div class="sbox-white side-box">
                        <div class="sbox-top">
                        </div>
                        <div class="sbox-content">
                            <div class="tip kaixin">
                                <h3>
                                    开心网账号也可以登录美团</h3>
                                <p>
                                    <a class="btn" id="kx001_btn_login" href="http://www.kaixin001.com/login/connect.php?appkey=5705495344186cda7e7a4ca331951a14&re=/kx001_receiver.html&t=86"
                                        target="_blank" style="background: url('http://img1.kaixin001.com.cn/i3/platform/rlink_btn.gif') no-repeat no-repeat 0px 0px; background-origin: initial; background-clip: initial;
                                        color: rgb(255, 255, 255); padding-left: 30px;
                                        font-size: 12px; height: 23px; line-height: 23px; text-decoration: none; overflow-x: hidden;
                                        overflow-y: hidden; float: left; "
                                        tip="0"><span style="float: left; cursor: pointer; background: url(http://img1.kaixin001.com.cn/i3/platform/rlink_btn.gif) no-repeat 100% 0;
                                            padding-right: 8px; height: 23px;">登录</span></a>
                                </p>
                            </div>
                        </div>
                        <div class="sbox-bottom">
                        </div>
                    </div>--%>
                </div>
            </div>
        </div>
        <!-- bd end -->
    </div>
</asp:Content>
